import request from "@/config/request";


export const getUserTaskid = (param) => {
  return request({
    url: "/get_user_taskid",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getAllUserTaskid = () => {
  return request({
    url: "/get_all_user_taskid",
    method: "GET",
  });
};

export const taskRevoke = (param) => {
  return request({
    url: "/task_revoke",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const allTaskRevoke = () => {
  return request({
    url: "/all_task_revoke",
    method: "GET",
  });
};

